Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
If parsing include file for a Joran configuration fails e.g. with a SaxParseException then the include file stream is not closed immediately. Depending on the operation system fixing the configuration file requires to stop the Java VM or perhaps to run the garbage collector explicitly.
From IncludeAction.java:
InputStream in = getInputStream(ec, attributes);
try {
if (in != null)
} catch (JoranException e)
{ addError("Error while parsing " + attributeInUse, e); }catch (IOException e)
{ // called if in.close did not work }The in.close() should be called in a finally block, so the the stream is ensured to be closed.